% by YLX on 6/11
% Version 3.1
% Update log 
%% renamed to prunePIE
%% added support for removing unreasonable pies 
function prunedPIE = prunePIE(PIE, s_row)
    %st = ftimer();
    % pie(j) <= S(i, j)
    pruned = find(sum(PIE <= s_row, 2)==3);
    prunedPIE = PIE(pruned, :);

    %global T_prunePIE N_prunePIE
    %T_prunePIE = T_prunePIE + ftimer()-st;
    %N_prunePIE = N_prunePIE + 1;
    return;
    